#include <stdio.h>
#include <math.h>
int main()
{
	unsigned long n = 286, m, p, b;
	m = n*(n+1);
	for (p=166; ; p++) {
		m = p*(3*p-1);
		for (b=floor(sqrt(m/4)); b<p; b++) {
			if (b*(2*b-1) == m/2) {
				printf("%ld %ld %ld\n", m/2, p, b);
				return;				
			}
		}
	}
}


